﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using S_Examine.Infrastructure;

namespace S_Examine.API.Controllers
{
	/// <summary>
	/// 实体迁移
	/// </summary>
	[Route("api/[controller]/[action]")]
	[ApiController]
	public class CreateSugarController : ControllerBase
	{
		private readonly SugarDbContext _context;

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="context"></param>
		public CreateSugarController(SugarDbContext context)
		{
			_context = context;
		}

		/// <summary>
		/// 创建实体到数据库
		/// </summary>
		/// <returns></returns>
		//[HttpGet]
		//public string CreateTable()
		//{
		//	_context.CreateSugarTable();
		//	return "ok";
		//}
	}
}
